﻿<script type="text/javascript">

        $(function () {
        $('#sbIsByTon').switchbutton({ checked: @Html.Raw(Model.IsByTon ? "true" : "false") });
    });
</script>


@*<div class="fitem1">
    <label>
        单据编号:
    </label>
    <input class="easyui-textbox" value="系统自动生成" style="width: 173px; height: 30px;">
    <label>
        客户编号:
    </label>
    <select class="easyui-combogrid" style="width: 173px; height: 30px;" name="CustomerId" id="CustomerId"></select>
    <label>
        客户名称:
    </label>
    <input name="CustomerName" id="CustomerName" class="easyui-textbox" style="width: 173px; height: 30px;" />
</div>
<div class="fitem1">
    <label>
        开单日期:
    </label>
    <input class="easyui-datebox" name="ContractTime" id="ContractTime" value="@Model.ContractTime" style="width: 173px; height: 30px; ">
    <label>
        开始日期:
    </label>
    <input class="easyui-datebox" name="BeginTime" id="BeginTime" style="width: 173px; height: 30px; ">
    <label>
        结束日期:
    </label>
    <input class="easyui-datebox" name="EndTime" id="EndTime" style="width: 173px; height: 30px; ">
</div>*@
<div class="fitem1">
    <label>
        不足n吨算n吨:
    </label>
    <input name="Tonnage" id="Tonnage" class="easyui-numberbox" value="@Model.Tonnage" style="width: 173px; height: 30px;" autocomplete="off" />
    <label>
        计费单位:
    </label>
    <input name="ChargingUnit" id="ChargingUnit" value="@Model.ChargingUnit" class="easyui-combobox" style="width: 173px; height: 30px;" />
    <label>
        按吨操作:
    </label>
    <input class="easyui-switchbutton" id="sbIsByTon" data-options="onText:'是',offText:'否'">
    <input type="hidden" id="hidIsByTon" name="IsByTon" />
</div>
<div class="fitem1">
    <label>
        冷藏单价:
    </label>
    <input name="ColdUnitPrice" id="ColdUnitPrice" value="@Model.ColdUnitPrice" class="easyui-numberbox" data-options="precision:'2'" style="width: 173px; height: 30px;" autocomplete="off" />
    <label>
        冷藏算法
    </label>
    <input name="ColdAlgorithm" id="ColdAlgorithm" value="@Model.ColdAlgorithm" class="easyui-combobox" style="width: 173px; height: 30px;" />
    <label>
        周期:
    </label>
    <input name="Cycle" id="Cycle" class="easyui-textbox" value="@Model.Cycle" style="width: 173px; height: 30px;" />

</div>
<div class="fitem1">
    <label>
        备注:
    </label>
    <textarea rows="4" cols="4" style="width: 400px; height: 90px; vertical-align: top" name="Remark" id="Remark" autocomplete="off" placeholder="200字以内">@Model.Remark</textarea>
</div>
